/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 活动和卡表关联表
 *
 * @author csg
 * @date 2021-05-21 14:20:15
 */
@Data
@TableName("v_activity_card")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "活动和卡表关联表")
public class VActivityCard extends Model<VActivityCard> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 活动ID
     */
    @ApiModelProperty(value="活动ID")
    private Long activityId;
    /**
     * 卡片ID
     */
    @ApiModelProperty(value="卡片ID")
    private Long cardId;

	@ApiModelProperty(value="0上架中1待上架（预约上架）2已下架")
	private Integer status;
    /**
     * 活动价格
     */
    @ApiModelProperty(value="活动价格")
    private BigDecimal activityPrice;
    @ApiModelProperty(value="活动开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty(value="活动结束时间")
    private LocalDateTime endTime;
    /**
     * 活动库存
     */
    @ApiModelProperty(value="活动库存")
    private Integer activityStock;
    @ApiModelProperty(value="已售数量")
    private Integer saleVolume;
	@ApiModelProperty(value="冻结数量（下单但未支付）")
	private Integer frozenVolume;
    /**
     * 虚拟购买数量
     */
    @ApiModelProperty(value="虚拟购买数量")
    private Integer falsePurchaseNumber;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
	@TableLogic
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
